package com.red.wood.module.eval.service.impl;

import java.util.Map;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.red.wood.common.util.IMap;
import com.red.wood.module.eval.dao.ApplicationCdnDao;
import com.red.wood.module.eval.service.ApplicationCdnService;

@Service
@Transactional
public class ApplicationCdnServiceImpl implements ApplicationCdnService{

	@Autowired
	private ApplicationCdnDao applicationCdnDao;
	
	@Override
	public void add(Map<String, Object> paramMap) {
		applicationCdnDao.add(paramMap);
	}

	@Override
	public Map<String, Object> getEntity(Map<String, Object> paramMap) {
		return applicationCdnDao.getEntity(paramMap);
	}

	@Override
	public void update(IMap param) {
		applicationCdnDao.update(param);
		
	}

	@Override
	public long getBySingleTaskId(String singleTaskId) {
		return applicationCdnDao.getBySingleTaskId(singleTaskId);
	}
	
	public Map<String, Object> getInfoBySingleTaskId(String singleTaskId){
		return applicationCdnDao.getInfoBySingleTaskId(singleTaskId);
	}

	@Override
	public long getMaxId() {
		return applicationCdnDao.getMaxId();
	}

	@Override
	public Map<String, Object> getLastData() {
		return applicationCdnDao.getLastData();
	}
}
